package com.wang.lottery.domain.rule.service.logic.impl;

import com.wang.lottery.domain.rule.model.req.DecisionMatterReq;
import com.wang.lottery.domain.rule.service.logic.BaseLogic;
import org.springframework.stereotype.Component;

/**
 * @author wjh
 * @create 2023-11-11 17:31
 * 年龄规则
 */
@Component
public class UserAgeFilter extends BaseLogic {
    /**
     * 获取决策值
     *
     * @param decisionMatter 决策物料
     * @return 决策值
     */
    @Override
    public String matterValue(DecisionMatterReq decisionMatter) {
        return decisionMatter.getValMap().get("age").toString();
    }
}
